package com.jayqqaa12.oauth2;

import org.springframework.stereotype.Component;

import com.jayqqaa12.jbase.jfinal.ext.model.Model;
import com.jfinal.ext.plugin.tablebind.TableBind;

@TableBind(tableName = "oauth2_client")
@Component
public class Client extends Model<Client> {
	private static final long serialVersionUID = -4297953247138370087L;

	public Client findClient(String client_id, String client_secret) {
		
		
		return findFirstByWhere(" where client_id=? and client_secret=?", client_id, client_secret);
	}
	
	
	
	

}
